package com.evil.kingdom.service.world.city.impl;

import com.evil.kingdom.pojo.entity.world.city.City;
import com.evil.common.mongo.service.impl.SingleServiceImpl;
import com.evil.kingdom.repository.world.city.CityRepository;
import com.evil.kingdom.service.world.city.CityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 城池
 *
 * @author liyang
 * @date 2024-05-22 17:46
 */
@Slf4j
@Service
public class CityServiceImpl extends SingleServiceImpl<CityRepository, City> implements CityService {

    @Override
    public List<City> list() {
        return this.repository.findAll();
    }
}
